package com.gg.user.gguser.service;

import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface GgSigningService {

    /**
     * 增加 从信息、商机 新增过来的
     *
     * id 移动过来的id
     * type 从哪里移动过来
     */
    Object addSignings(HttpServletResponse response, HttpServletRequest request, Integer id, Integer type) throws Exception;

    /**
     * 移除 信息、商机
     */
    Object removeSignings(HttpServletResponse response, HttpServletRequest request, Integer id, Integer type) throws Exception;

    /**
     * 查询 列表
     */
    Object getSigning(HttpServletResponse response, HttpServletRequest request, Integer page, Integer pageNumber, @RequestParam(name = "name", required = false) String name, @RequestParam(name = "type", required = false) Integer type, @RequestParam(name = "state", required = false) Integer state, @RequestParam(name = "remarks", required = false) String remarks) throws Exception;

    /**
     * 删除商机
     */
    Object delectSignings(HttpServletResponse response, HttpServletRequest request,Integer id) throws Exception;

    /**
     * 增加商机
     */
    Object addSigningsAll(HttpServletResponse response, HttpServletRequest request, String name, String sex, @RequestParam(name = "position", required = false) String position, String phone, @RequestParam(name = "mailbox", required = false) String mailbox, @RequestParam(name = "qq", required = false) String qq, @RequestParam(name = "weChat", required = false) String weChat, @RequestParam(name = "provid", required = false) String provid, @RequestParam(name = "cityid", required = false) String cityid, @RequestParam(name = "areaid", required = false) String areaid, @RequestParam(name = "address", required = false) String address, @RequestParam(name = "level", required = false) Integer level, @RequestParam(name = "state", required = false) Integer state, @RequestParam(name = "remarks", required = false) String remarks, @RequestParam(name = "username", required = false) String username, @RequestParam(name = "fax", required = false) String fax, @RequestParam(name = "contact", required = false) String contact) throws Exception;

    /**
     * 查看商机详情
     */
    Object getSigningsSelectItems(HttpServletResponse response, HttpServletRequest request, String token) throws IOException;

    /**
     * 修改商机
     */
    Object updateSignings(HttpServletResponse response, HttpServletRequest request, String ggItemsToken, String ggBoName, String ggBoProvince, String ggBoCity, String ggBoAreaid, String ggBoDetailed, String ggBoHandle, String ggBoContact, Integer ggBoState, Integer ggBoLevel, String ggBoGender, String ggBoPosition, String ggBoTelephone, String ggBoFax, String ggBoMailbox, String ggBoQq, String ggBoWechat, String ggSZipcode, String ggSWebsite, String ggSSource) throws Exception;

    /**
     * 商机批量  移除 商机移入信息
     */
    Object removebuSigningsAll(HttpServletResponse response, HttpServletRequest request,String listid, Integer type) throws Exception;

    /**
     * 商机批量  删除
     */
    Object delectbuSigningsAll(HttpServletResponse response, HttpServletRequest request,String listid) throws Exception;


}
